package com.example.dubbo.facade;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.outstanding.framework.plugin.dubbo.DubboProvider;




public class Main {
	 @SuppressWarnings("resource")
	    public static void main(String[] args) {
	        try {
	            ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:/spring/*Beans.xml");
	            context.start();
	        } catch (Exception e) {
	            
	            System.err.println("== DubboProvider context start error ==");
	            e.printStackTrace();
	        }
	        synchronized (DubboProvider.class) {
	            while (true) {
	                try {
	                    DubboProvider.class.wait();
	                } catch (InterruptedException e) {
	                    
	                    System.err.println("== synchronized error ==");
	                    e.printStackTrace();
	                }
	            }
	        }

	    }
	

}
